//package com.kungfuhacking.wristbandpro.chat.presenter;
//
//import android.content.Context;
//import android.net.Uri;
//import android.support.v7.widget.RecyclerView;
//import android.view.LayoutInflater;
//import android.view.View;
//import android.view.ViewGroup;
//
//import com.facebook.drawee.view.SimpleDraweeView;
//import com.kungfuhacking.wristbandpro.R;
//import com.kungfuhacking.wristbandpro.chat.bean.AddressBean;
//
//import java.util.List;
//
///**
// * 创建群时已经选择的联系人横向滑动的recycleview
// * <p>
// * Created by Aaron on 16/1/22.
// */
//public class ChooseNumsRecyAdapter extends RecyclerView.Adapter<ChooseNumsRecyAdapter.ChooseNumsViewHolder> {
//
//    private List<AddressBean.ContactsEntity> contacts;
//    private Context ctx;
//    private LayoutInflater mLayoutInflater;
//
//    public ChooseNumsRecyAdapter(Context ctx, List<AddressBean.ContactsEntity> contacts) {
//        this.ctx = ctx;
//        this.mLayoutInflater = LayoutInflater.from(ctx);
//        this.contacts = contacts;
//    }
//
//    @Override
//    public int getItemCount() {
//        return contacts.size();
//    }
//
//    @Override
//    public ChooseNumsViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
//        return new ChooseNumsViewHolder(mLayoutInflater.inflate(R.layout.item_choose_nums_recycler, parent, false));
//    }
//
//    @Override
//    public void onBindViewHolder(ChooseNumsViewHolder holder, int position) {
//
//        if (contacts == null || contacts.get(position) == null || contacts.get(position).user == null)
//            return;
//
//        holder.iv_pic.setImageURI(Uri.parse(contacts.get(position).user.imgUrl));
//
//    }
//
//    //自定义的ViewHolder，持有每个Item的的所有界面元素
//    static class ChooseNumsViewHolder extends RecyclerView.ViewHolder {
//
//        SimpleDraweeView iv_pic;
//
//        ChooseNumsViewHolder(View view) {
//            super(view);
//
//            iv_pic = (SimpleDraweeView) view.findViewById(R.id.iv_pic);
//
//        }
//    }
//
//}
